const koa = require('koa');
const Pug = require('koa-pug');
const config = require('./config.js');
const routes = require('./routes.js');
const body = require('koa-body');

let app = new koa();
let pug = new Pug();
pug.use(app);

app.use(body());
app.use(routes);
app.listen(config.port);
console.log(`网站已启动，端口${config.port}`);